<?php 
    include_custom("/views/admin/header.php");
?>

<div id="main_container">

	<div class="header">
      <?php 
    include_custom("/views/admin/menu_header.php");
    ?>      
    </div>
    
    <div class="main_content">
    
            <?php 
    include_custom("/views/admin/menu.php");
?>        
                    
                    
                    
                    
    <div class="center_content">  

    
    <div class="right_content">            
        
    <h2>Thêm đường</h2> 
                    
                    
<div class="block_form">
<form action="index.php?rt=admin/post_edit_duong" method="post">
  <table width="100%">
    <colgroup width="15%">
    </colgroup>
    <colgroup width="85%">
    </colgroup>
    <tr>
      <td>Mã số đường:</td>
      <td><?php echo $duong->id; ?></td>
    </tr>
    <tr>
      <td>Tên đường:</td>
      <td><input name="name" type="text" value="<?php echo $duong->name; ?>"></td>
    </tr>
     <tr>
      <td>Order:</td>
      <td><input name="order" type="text" value="<?php echo $duong->order;?>"></td>
    </tr>
    <tr>
      <td>Status:</td>
      <td>
            <select name="status">
                <option  value="1" <?php if($duong->status != 0) echo "selected='selected'"; ?>>Hoạt động</option>
                <option  value="0" <?php if($duong->status == 0) echo "selected='selected'"; ?>>Không hoạt động</option>
            </select>
      </td>
    </tr>
    
	<tr>
      <td></td>
      <td><input type="submit" name="submit" value="Submit"></td>
    </tr>
  </table>
  <input type="hidden" name="id" value="<?php echo $duong->id; ?>" />
  </form>
</div>

     </div><!-- end of right content-->
                                
  </div>   <!--end of center content -->               
                    
<?php 
    include_custom("/views/admin/footer.php");
?>